package com.tong.hao.zuul.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ZuulControllerTest
 * @Author 友野浩二
 * @Description zuul自身的rest ful 服务
 * @Version 1.0
 */
@RestController
@RequestMapping(value = "tongzuul")
@Api(tags = "zuul内部rest api")
@Slf4j
public class ZuulControllerTest {

    @ApiOperation(value = "zuul示例", notes = "tongzuul 示例")
    @RequestMapping(value = "/haha", method = RequestMethod.GET)
    public String haha() {
        return "你好啊!我是ZuulAPI网关!";
    }

}
